//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

        package com.ruoyi.system.service.impl;

import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.system.api.domain.SysMessage;
import com.ruoyi.system.mapper.SysMessageMapper;
import com.ruoyi.system.service.ISysMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysMessageServiceImpl implements ISysMessageService {
    @Autowired
    private SysMessageMapper sysMessageMapper;

    //public SysMessageServiceImpl() {
    //}

    public SysMessage selectSysMessageByMessageId(Long messageId) {
        return this.sysMessageMapper.selectSysMessageByMessageId(messageId);
    }

    public List<SysMessage> selectSysMessageList(SysMessage sysMessage) {
        return this.sysMessageMapper.selectSysMessageList(sysMessage);
    }

    public int insertSysMessage(SysMessage sysMessage) {
        sysMessage.setCreateTime(DateUtils.getNowDate());
        return this.sysMessageMapper.insertSysMessage(sysMessage);
    }

    public int updateSysMessage(SysMessage sysMessage) {
        return this.sysMessageMapper.updateSysMessage(sysMessage);
    }

    public int deleteSysMessageByMessageIds(Long[] messageIds) {
        return this.sysMessageMapper.deleteSysMessageByMessageIds(messageIds);
    }

    public int deleteSysMessageByMessageId(Long messageId) {
        return this.sysMessageMapper.deleteSysMessageByMessageId(messageId);
    }
}
